#pragma once
#ifndef _CTEXTURE_H
#define _CTEXTURE_H

#include <d3d9.h>
#include <d3dx9.h>

class Texture
{
private:
	LPDIRECT3DDEVICE9		_pd3dDevice;
	LPDIRECT3DTEXTURE9		_image;
	D3DXIMAGE_INFO			_info;
	int						_width;			// width of image
	int						_height;		// height of image

public:
	Texture(LPDIRECT3DDEVICE9 pd3dDevice);
	~Texture();

	// Load texture from file
	bool LoadTexture(LPCSTR filename, D3DCOLOR transcolor);

	LPDIRECT3DTEXTURE9 GetImage() { return _image; }
	int GetWidth() { return _width; }
	int GetHeight() { return _height; }
};
#endif


